import React, {PureComponent} from 'react'
import WithRouter from "../hoc/WithRouter";

export class User extends PureComponent {
    render() {
        const { query } = this.props.router
        return (
            <div>User~{query.name}~{query.age}
            </div>
        )
    }
}

export default WithRouter(User)